Dynamic Neural Program Embedding for Program Repair

نویسندگان

  • Ke Wang
  • Rishabh Singh
  • Zhendong Su
چکیده

Neural program embeddings have shown much promise recently for a variety of program analysis tasks, including program synthesis, program repair, codecompletion, and fault localization. However, most existing program embeddings are based on syntactic features of programs, such as token sequences or abstract syntax trees. Unlike images and text, a program has well-defined semantics that can be difficult to capture by only considering its syntax (i.e. syntactically similar programs can exhibit vastly different run-time behavior), which makes syntaxbased program embeddings fundamentally limited. We propose a novel semantic program embedding that is learned from program execution traces. Our key insight is that program states expressed as sequential tuples of live variable values not only capture program semantics more precisely, but also offer a more natural fit for Recurrent Neural Networks to model. We evaluate different syntactic and semantic program embeddings on the task of classifying the types of errors that students make in their submissions to an introductory programming class and on the CodeHunt education platform. Our evaluation results show that the semantic program embeddings significantly outperform the syntactic program embeddings based on token sequences and abstract syntax trees. In addition, we augment a search-based program repair system with predictions made from our semantic embedding and demonstrate significantly improved search efficiency.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A DSS-Based Dynamic Programming for Finding Optimal Markets Using Neural Networks and Pricing

One of the substantial challenges in marketing efforts is determining optimal markets, specifically in market segmentation. The problem is more controversial in electronic commerce and electronic marketing. Consumer behaviour is influenced by different factors and thus varies in different time periods. These dynamic impacts lead to the uncertain behaviour of consumers and therefore harden the t...

متن کامل

ESTIMATING THE VULNERABILITY OF THE CONCRETE MOMENT RESISTING FRAME STRUCTURES USING ARTIFICIAL NEURAL NETWORKS

Heavy economic losses and human casualties caused by destructive earthquakes around the world clearly show the need for a systematic approach for large scale damage detection of various types of existing structures. That could provide the proper means for the decision makers for any rehabilitation plans. The aim of this study is to present an innovative method for investigating the seismic vuln...

متن کامل

The effects of fifa 11+ for referees comprehensive of warm-up program on dynamic balance in Iranian football referees

The present study aimed to examine the effects of FIFA 11+ comprehensive warm-up program for referees on dynamic balance among male Iranian football referees and assistant referees. Fifty-two football referees and assistant referees who had no previous injury voluntarily participated in the present study. They were randomly assigned into an intervention group and a control one (26 participants ...

متن کامل

Functional Training Program Effect on Static and Dynamic Balance in Male Able-bodied Elderly

Objectives: Balance is an index to determine the level of independency of elderly (65 years and older) in their daily activities. The purpose of this study was to examine the effect of a functional training program on static and dynamic balance of elderly male able-bodied subjects. Methods & Materials: Thirty elderly male subjects (age:70.83±3 y, weight:70.60±2.44 kg, height:1.78±2.28 m) par...

متن کامل

The Effect of Water Exercise Program on Static and Dynamic Balance in Elderly Women

Objectives: Poor balance is one of risk factors of falling, a cause of injury and even death in elderly. The aim of this study was to evaluate the effect of a water exercise program on static and dynamic balance in elder women. Methods & Materials: Thirty participants aged 55-70 years completed an exercise program (60 min, 3 days and 6 weeks), in 2 groups, exercise and control, voluntarily. ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • CoRR

دوره abs/1711.07163  شماره 

صفحات  -

تاریخ انتشار 2017